﻿@{
    ViewBag.Title = "小博客更新记录";
    Layout = "~/Views/Shared/_Layout.cshtml";
    var sys = ViewBag.sys as SysInfoModel;
}
@model List<SysHistoryModel>
<link href="~/Content/Blog/timerline.css" rel="stylesheet" />
<div class="main-desc">
    <div class="dv-title-main">
        小博客大事记
        <div class="dv-title-main-op">
            <span><i class="icon-eye-open"></i> 浏览(<label class="lbnum">@(sys.ReadCount)</label>)</span>
            <span title="点个赞吧~" onclick="agreeSys(this,@sys.AgreeCount,2)" class="do-agree2"><i class="icon-heart-empty"></i> 赞(<label class="lbnum">@sys.AgreeCount</label>)</span>
        </div>
    </div>
    @foreach (var item in Model)
    {
        <div class="dv-title">
            @item.UpdateDate.ToString("yyyy年MM月dd日 HH时mm分ss秒")<a href="javascript:;" title="收起" onclick="hideBase(this)">—</a>

        </div>
        <div class="dv-desc">
            @Html.Raw(item.Content)
        </div>
    }
</div>
<script type="text/javascript">
    function hideBase(a) {
        if ($(a).text() == "—") {
            $(a).parent().next('div').slideUp(500);
            $(a).text('+').attr('title', "展开");
        } else {
            $(a).parent().next('div').slideDown(500);
            $(a).text('—').attr('title', "收起");
        }
    }
</script>
